<?php
session_start();
header("Content-Type: text/html; charset=utf-8");
if (isset($_REQUEST['tweet_id']) && isset($_REQUEST['comment'])) {
    $user = $_REQUEST['user'];
    $tweet_id = $_REQUEST['tweet_id'];
    $comment = $_REQUEST['comment'];
    $result = "http://nibble.li/twittertido/web/comment.php?user=$user&tweet_id=$tweet_id&comment=$comment";
    $correct = file_get_contents($result, 0, null, null);
    echo $correct;
} else {
    echo -2;
}
?>
